package com.tsd.jxc.stock.dao;

import com.tsd.common.vo.BatchDeleteLogicVo;
import com.tsd.core.vo.PageBean;
import com.tsd.jxc.stock.entity.JxcStockTransfer;
import com.tsd.jxc.stock.entity.JxcStockTransferExt;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 描述：JxcStockTransferMapper
 *
 * @author Hillpool
 * @date 2022/12/12 11:32:10
 */
public interface JxcStockTransferMapper {

    JxcStockTransfer selectByPrimaryKey(Long id);

    JxcStockTransferExt selectBySid(String sid);

    int deleteByPrimaryKey(Long id);

    int insert(JxcStockTransfer record);

    int insertSelective(JxcStockTransfer record);

    int insertList(@Param("list") List<JxcStockTransferExt> list);

    int updateByPrimaryKey(JxcStockTransfer record);

    int updateByPrimaryKeySelective(JxcStockTransfer record);

    int updateList(@Param("list") List<JxcStockTransferExt> list);

    List<JxcStockTransferExt> selectByEntity(JxcStockTransferExt record);

    List<JxcStockTransferExt> selectByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<JxcStockTransferExt> selectCount1Page(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<JxcStockTransferExt> selectByParams(@Param("params") Map<String, Object> params);

    JxcStockTransferExt selectDuplicatedCode(JxcStockTransfer record);

    void deleteLogicBySidList(BatchDeleteLogicVo logicVo);

    List<JxcStockTransferExt> selectStockTransfersIncludeDetailByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

}